<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title><{$title}></title>
	<link rel="stylesheet" href="./public/css/bootstrap.min.css">
	<link rel="stylesheet" href="./public/my.css">
</head>
<{block name="main"}>
<body>
	<div class="container">
		<h1><{$title}></h1>
		<div class="center-block mt20">
			<a href="./index.php?c=User&a=index" class="btn btn-info" ">首页</a>
			<a href="./index.php?c=User&a=add" class="btn btn-info" ">添加</a>
		</div>
		<table class="table table-hover mt20">
		<tr>
			<th>id</th>
			<th>name</th>
			<th>age</th>
			<th>sex</th>
			<th>opeart</th>
		</tr>
		<{foreach $list as $v}>
				<tr>
					<td><{$v.id}></td>
					<td><{$v.nickname}></td>
					<td><{$v.age}></td>
					<td><{$v.sex}></td>
					<td> <a href="./index.php?c=User&a=edit&id=<{$v.id}>" class="btn btn-sm btn-primary">编辑</a>
                    <a href="./index.php?c=User&a=del&id=<{$v.id}>" class="btn btn-sm btn-danger">删除</a></td>
				</tr>
		<{/foreach}>
		</table>
	</div>
	<{/block}>

	<script src="./public/js/jquery.min.js"></script>
	<script src="./public/js/bootstrap.min.js"></script>
</body>
</html>